package com.wisezone.HomeWork.home0217;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Test02 {
    public void main(String[] args) throws IOException {
        ClassLoader load = this.getClass().getClassLoader();
        InputStream is = load.getResourceAsStream("com\\");
        Properties pro = new Properties();
        pro.load(is);
        String user = pro.getProperty("user");
        String password=pro.getProperty("password");
        System.out.println("user = "+user);
        System.out.println("password="+password);
    }
}
